package interfaceSample;

public class Cow implements Animal {

	private String name;
	
	public Cow(String name){
		this.name = name;
	}
	
	@Override
	public void makeNoise() {
		System.out.println("Mooohhhh...Mooohhhh...");
	}

	@Override
	public String getName() {
		return name;
	}

}
